package com.woniuxy.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @BelongsProject: java-85-course-code
 * @BelongsPackage: com.woniuxy.controller
 * @Author: LiTongMiao
 * @Date: 2022/2/11 11:11
 * @Description: TODO
 */
@Controller
@RequestMapping("/te")
public class MyInterceptTest {
    @RequestMapping("/test")
    public String test(Model model){
        System.out.println("方法执行");
        model.addAttribute("msg","hello");
        return "sucess";
    }
}
